package com.tyqx.hashchaindao.mapper;


import com.tyqx.hashchainbean.module.SysRole;
import com.tyqx.hashchainbean.vo.SysRoleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SysRoleMapper {

	public SysRole getById(@Param(value = "roleId") Long roleId)throws Exception;

	public List<SysRole>	getListByMap(Map<String, Object> param)throws Exception;

	public Integer getCountByMap(Map<String, Object> param)throws Exception;

	public Integer save(SysRole sysRole)throws Exception;

	public Integer modify(SysRole sysRole)throws Exception;

	public Integer removeById(@Param(value = "roleId") Long roleId)throws Exception;

	public List<SysRole> getRoleKeyById(Long roleId);

	public List<SysRoleVO> getAllByUserId(@Param("userId") Long userId);
}
